# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=w_scan2
pkgver=1.0.14
pkgrel=0
pkgdesc="Universal ATSC and DVB blind scanner"
url="https://github.com/stefantalpalaru/w_scan2"
arch="all"
license="GPL-2.0-or-later"
options="!check" # No test suite
replaces="w_scan"
makedepends="autoconf automake libtool linux-headers"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/stefantalpalaru/w_scan2/archive/$pkgver.tar.gz"

prepare() {
	default_prepare
	autoreconf -vif
}

build() {
	./configure \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
d10bcd197deffb5e88e6f4bb02c81437b06333ad73fa52755b0f85e461d438f9670146db86f70a09694e51a40f2e05167ce48e951dfbeac2d92b563720cabb2d  w_scan2-1.0.14.tar.gz
"
